<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->	
        <div class="span8">
            <h5 class="text-left text-info">Search Result: <?php echo $this->searchTerm; ?></h5>
           <ul class="nav nav-tabs" id="searchTab">
               <?php $i=1; foreach ($this->allSearchTerms as $st) { 
                $activeClass="";
                if($i == 1)
                {
                    $activeClass="active";
                }
               ?>
                <li class="<?php echo $activeClass ?>">
                    <a data-toggle="tab" href="#<?php echo $i;?>" ><?php echo $st; ?></a>
                </li>
                <?php 
                    $i = $i+1;
                } ?>
            </ul>
            <div class="tab-content" id="myTabContent">
              <?php
                $i = 1;
                foreach ($this->allSearchTerms as $key)
                {
                    $value=$this->searchResult[$key];
                    $activeClass="";     
                    if($i == 1)
                    {
                        $activeClass="active in";
                    }
              ?>
              <div id="<?php echo $i ?>" class="tab-pane fade <?php echo $activeClass ?>">
                <?php 
                    if(isset($value) && sizeof($value) > 0)
                    {
                ?>
                        <ul class="thumbnails">
			<?php 							
                            foreach($value as $p)
                            {							
			?>
                                <li class="span3">
                                    <div class="thumbnail">
                                        <p class="text-center"><a href="product.php?id="><img src='static/<?php echo $p->getImage(); ?>' alt=""></a></p>
                                            <div class="caption">
                                                <h5 class="text-center text-info"><a href="product.php?id=<?php echo $p->getID(); ?>"><?php echo $p->getName(); ?></a></h5>	  
                                                    <p class="text-center">
                                                        <span class="strike text-warning">Sale price <?php echo $p->getPrice(); ?></span>&nbsp; &#x20B9;
                                                        <span class="text-error"><strong>Offer <?php echo $p->getDiscountPrice(); ?></strong></span> &#x20B9;
                                                    </p>
                                                    <p class="text-center"><a href="cart.php?pid=<?php echo $p->getID(); ?>&action=add" class="btn btn-success"><i class="icon-shopping-cart icon-white"></i>Buy</a></p>
					</div>
                                    </div>
				</li>
			<?php
                            }
			?>
						
				    </ul>	
                <?php      
                    }
                    else
                    {
                        echo "No result found";
                    }
                ?>
              </div>
              <?php
                $i = $i +1;
                }
              ?>
            </div>
        </div>                 



